export const GroupType = (value: string) => {
  let str: string;
  switch (value) {
    case "01":
      str = "变压器";
      break;
    case "02":
      str = "灯";
      break;
    case "03":
      str = "灯杆";
      break;
    case "04":
      str = "灯杆附属物";
      break;
    case "05":
      str = "回路";
      break;
    case "06":
      str = "电缆井";
      break;
    case "07":
      str = "单灯控制器";
      break;
    case "08":
      str = "监控箱";
      break;
    case "09":
      str = "分支箱";
      break;
    case "10":
      str = "集中器";
      break;
    case "11":
      str = "直流柜";
      break;
    default:
      str = "";
  }
  return str;
};

export const GroupNum = (value: string) => {
  let str: string;
  switch (value) {
    case "transformer":
      str = "01";
      break;
    case "lamp":
      str = "02";
      break;
    case "lamp_post":
      str = "03";
      break;
    case "lamp_post_tailpiece":
      str = "04";
      break;
    case "loop":
      str = "05";
      break;
    case "cable_well":
      str = "06";
      break;
    case "single_lamp":
      str = "07";
      break;
    case "hardware":
      str = "08";
      break;
    default:
      str = "";
  }
  return str;
};
